#ifndef WEN_FRUSTUM_H
#define WEN_FRUSTUM_H

//----------------------------------------------------------------
#include <d3dx9.h>
//----------------------------------------------------------------

//----------------------------------------------------------------
namespace wen
{
//----------------------------------------------------------------

class Frustum
{
public:
	Frustum();
	virtual ~Frustum();

	void CreateFrustum(float screenDepth, D3DXMATRIX projectionMatrix, D3DXMATRIX viewMatrix); 
	bool CheckIfPointIsInsideFrustum(float x, float y, float z);
	bool CheckIfPointIsInsideFrustum(D3DXVECTOR3 vect);

private:
	D3DXPLANE m_planes[6];

	D3DXPLANE* m_pFrustum;
};

//----------------------------------------------------------------
} // end namespace
//----------------------------------------------------------------
#endif // WEN_FRUSTUM_H
//----------------------------------------------------------------